package com.tmc.web.controller.inthotel;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.tmc.bean.inthotel.hotel.HotelOrder;
import com.tmc.vendor.inthotel.tourico.service.HotelOrderService;

@Controller
@RequestMapping("/order")
public class HotelOrderController {
	@Autowired
	private HotelOrderService hotelOrderService;
	
	@RequestMapping(value="/createOrder")
	public ModelAndView createOrder(HotelOrder hotelOrder){
		Map<String,Object> map = new HashMap<String,Object>();
	    hotelOrderService.saveHotelOrder(hotelOrder);
	    map.put("hotelOrder",hotelOrder);
	    return new ModelAndView("",map);
	}
	
}
